Conversation
b3b9c46 to
15a3c00
Compare
15a3c00 to
5feaa09
Compare
ryangoree
approved these changes
Apr 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@delvtech/drift@0.8.0
Minor Changes
createStub*utils and renamedgetRandom*utils torandom*.getRandomAddressis nowrandomAddressgetRandomHexis nowrandomHexgetRandomIntis nowrandomIntfindmethod from theStoreinterface.getBlockOrThrowmethod and added an optionalGetBlockOptionsargument togetBlockwhich accepts athrowsoption. Ifthrowsistrue, aBlockNotFoundErrorerror will be thrown if the block isn't found andundefinedwill be remove from the return type.BaseTypesexport toBaseTypeOverridesto be consistent with the precedent set byBlockOverrides.Patch Changes
Drift.contract(...). A contract created in contexts whereDrift.isReadWrite()returnstruewill now be properly inferred as aReadWriteContract.deployandencodeDeployDatamethods toAdapterand clients.ClientCacheandContractCachewhich return values from thestoreusing their corresponding*Keymethods. For example:contract.cache.getRead('name')gets the value associated withcontract.cache.readKey('name')fromcontract.cache.store.invalidateCallsMatchingare now optional.argsparam of the following methods are now optional:invalidateReadsMatchingonReadonSimulateWriteonReadonSimulateWriteonWriteonDeployepochBlockoption to contract clients to limit how far back function calls and event queries can go. More details in the doc comment.ClientCache(i.e.drift.cache):clearBlocks()clearBalances()clearTransactions()clearReads()ContractCache(i.e.contract.cache):clearReads()Clientextension methods to inferred hook names. This means autocompletion forClient.hookswill be available for methods added viaextend(...), including thecontract(...)method added by the mainDriftclient.OxAdaptertoDefaultAdapter@delvtech/drift-ethers@0.8.0
Patch Changes
deployandencodeDeployDatamethods toAdapterand clients.@delvtech/drift-ethers-v5@0.8.0
Patch Changes
deployandencodeDeployDatamethods toAdapterand clients.@delvtech/drift-viem@0.8.0
Patch Changes
deployandencodeDeployDatamethods toAdapterand clients.@delvtech/drift-web3@0.8.0
Patch Changes
deployandencodeDeployDatamethods toAdapterand clients.